<%@ page import="quanlythuvien.PhieuMuonSach" %>



<div class="fieldcontain ${hasErrors(bean: phieuMuonSachInstance, field: 'code', 'error')} required">
	<label for="code">
		<g:message code="phieuMuonSach.code.label" default="Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="code" maxlength="50" required="" value="${phieuMuonSachInstance?.code}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuMuonSachInstance, field: 'ngayMuon', 'error')} required">
	<label for="ngayMuon">
		<g:message code="phieuMuonSach.ngayMuon.label" default="Ngay Muon" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="ngayMuon" precision="day"  value="${phieuMuonSachInstance?.ngayMuon}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: phieuMuonSachInstance, field: 'maNhanVien', 'error')} required">
	<label for="maNhanVien">
		<g:message code="phieuMuonSach.maNhanVien.label" default="Ma Nhan Vien" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maNhanVien" name="maNhanVien.id" from="${quanlythuvien.NhanVien.list()}" optionKey="id" required="" value="${phieuMuonSachInstance?.maNhanVien?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuMuonSachInstance, field: 'maThe', 'error')} required">
	<label for="maThe">
		<g:message code="phieuMuonSach.maThe.label" default="Ma The" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="maThe" name="maThe.id" from="${quanlythuvien.TheDocGia.list()}" optionKey="id" required="" value="${phieuMuonSachInstance?.maThe?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: phieuMuonSachInstance, field: 'tinhTrang', 'error')} required">
	<label for="tinhTrang">
		<g:message code="phieuMuonSach.tinhTrang.label" default="Tinh Trang" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="tinhTrang" required="" value="${phieuMuonSachInstance.tinhTrang}"/>
</div>

